<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    <title>教学动作</title>
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current bg-light-gray" style="background: #fff;">
        <nav class="bar bar-tab punch-card-bar">
          <a class="tab-item external active" href="${ctx.host}/courses/${dailyCourseware.batch.monthly.id}/batches/${dailyCourseware.batch.id}/units">
            <span class="icon icon-today"></span>
            <span class="tab-label">今日</span>
          </a>
          <a class="tab-item external" href="${ctx.host}/courses">
            <span class="icon icon-lesson"></span>
            <span class="tab-label">课程</span>
          </a>
          <a class="tab-item external" href="${ctx.host}/profile">
            <span class="icon icon-profile"></span>
            <span class="tab-label">我的</span>
          </a>
        </nav>

        <div class="content">
          <div class="task-banner">
            <img src="${ctx.resource}/image/task.png" class="task-banner">
            <c:if test="${dailyCourseware.status.finished}">
              <div class="finish status-label">已打卡</div>
            </c:if>
          </div>
          <div class="course-trainning">
            <h4 class='action-title no-margin'>${dailyCourseware.template.name}</h4>
            <div class="essentials">
              <span style="font-size: .6rem; color: #737373;">动作要领</span>
              <p>${dailyCourseware.template.description}</p>
            </div>
            <a href="${ctx.host}/courses/${dailyCourseware.batch.monthly.id}/batches/${dailyCourseware.batch.id}/units/${dailyCourseware.id}/homework" class="button button-dark ft-market-btn homework-btn pull-right">运动计划 <span class="arrows-right"></span></a>
          </div>
        </div>
        
      </div>
    </div>
    
  </body>
</html>